home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: fcmc.com!acdc!anant
- From: anant@acdc (Anant Bhatnagar (Technology Grp))
- Subject: Implementation of Patterns
- Keywords: Patterns, C++, templates
- Distribution: comp.lang.c++
- Message-ID: <DoL4xF.94C@firewall.fcmc.com>
- Sender: nobody@firewall.fcmc.com
- Organization: Fuji Capital Markets Corp
- Date: Wed, 20 Mar 1996 21:27:15 GMT
-
- I am reading the book "Tamning C++" by Dr. Jiri Soukup about how to
- implement patterns. It has started to confuse me :-)
- I just need a clarification on one of the examples illustrated in the
- book. ( Example # 4.3 )
-
- Why does the author need two template instantiations e.g.
-
- the example uses:
-
- slist_base<1> L1 // encapsulates list1
- slist_base<2> L2 // encapsulates list2
-
- Why can't we just have
-
- slist_base<1> L1, L2;
-
- instead.
-
- Whats the main point I am missing here ?
-
- Thank you
-
- Anant Bhatnagar ( anant@fcmc.com )
-
-
-
-